package com.xyy.saas.payment.cashier.core.bo;

import java.io.Serializable;
import java.util.Optional;

/**
 * @author dake
 */
public class CashierPayBO implements Serializable {


    private String payNo;


    private String payLoad;


    private Long expireTime;

    public static CashierPayBO instance(String payNo, String payLoad, Long expireTime) {
        CashierPayBO payBO = new CashierPayBO();
        payBO.payLoad = Optional.ofNullable(payLoad).orElse("");
        payBO.payNo = Optional.ofNullable(payNo).orElse("");
        payBO.expireTime = Optional.ofNullable(expireTime).orElse(0L);
        return payBO;
    }

    public String getPayNo() {
        return payNo;
    }

    public void setPayNo(String payNo) {
        this.payNo = payNo;
    }

    public String getPayLoad() {
        return payLoad;
    }

    public void setPayLoad(String payLoad) {
        this.payLoad = payLoad;
    }

    public Long getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Long expireTime) {
        this.expireTime = expireTime;
    }
}
